package org.p2psimulator.entity.protocol.messages.hibrid;

import org.p2psimulator.entity.Id;
import org.p2psimulator.entity.behavior.BehaviorTypes;
import org.p2psimulator.entity.protocol.messages.MessageTypes;
import org.p2psimulator.entity.reputation.Reputation;

public class PublishOpinion extends HibridMessage {


	private Reputation rep;

	public PublishOpinion(Id origin, Id destination, int transactionId,
			BehaviorTypes originBehavior) {
		super(origin, destination, transactionId, originBehavior);
	}

	@Override
	public MessageTypes getMessageType() {
	return MessageTypes.EIGEN_PUBLISH_REPUTATION;
	}

	@Override
	public String getName() {
		return MessageTypes.EIGEN_PUBLISH_REPUTATION.getName();
	}

	public Reputation getRep() {
		return rep;
	}

	public void setRep(Reputation rep) {
		this.rep = rep;
	}
}
